#if !defined(AFX_CURRMODULECONFDLG_H__C9A3CB83_37DA_4C9E_8BC4_058CB9A0DF9E__INCLUDED_)
#define AFX_CURRMODULECONFDLG_H__C9A3CB83_37DA_4C9E_8BC4_058CB9A0DF9E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CurrModuleConfDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CCurrModuleConfDlg dialog

class CCurrModuleConfDlg : public CDialog
{
// Construction
public:
	void CheckPremise(char * result);
	CCurrModuleConfDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CCurrModuleConfDlg)
	enum { IDD = IDD_CURR_MODULE_DLG };
	CComboBox	m_cmbModType;
	CComboBox	m_cmbComPort;
	CListCtrl	m_listCurrMod;
	int		m_comAddr;
	int		m_modID;
	CString	m_modMemo;
	CString	m_modName;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCurrModuleConfDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
private:
	_variant_t m_vmodID,m_vmodName,m_vmodType,m_vcomPort,m_vcomAddr,m_vmodMemo;
	_RecordsetPtr m_pRecordset;
	
	BOOL m_bSuccess;
	int m_nCurrentSel;
	
	int CheckValid();
	void SetBtnState();
	void LoadData();
	void SaveData();
// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CCurrModuleConfDlg)
	afx_msg void OnItemchangedListCurrmod(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClose();
	virtual BOOL OnInitDialog();
	afx_msg void OnBtnAdd();
	afx_msg void OnBtnDelete();
	afx_msg void OnBtnModify();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CURRMODULECONFDLG_H__C9A3CB83_37DA_4C9E_8BC4_058CB9A0DF9E__INCLUDED_)
